#!/bin/sh

# setup the environment for cross compiling for the ts-7500 board
# expects a directory (/ts-root/usr) has been created already
# and is later copied to the root of the sd-card filesystem partition 4

# install prefix, install ola here
export TS_PREFIX=/ts-root/usr/

export CROSSTOOLS=/ts-crosstool/crosstool-linux-arm-uclibc-3.4.6/arm-uclibc-3.4.6
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/ts-root/usr/lib/pkgconfig/

# compile-time
export PATH=$CROSSTOOLS/bin:$PATH
export CROSS_TARGET=arm-linux-uclibc

export CC="${CROSS_TARGET}-gcc"
export CXX="${CROSS_TARGET}-g++"
export AR="${CROSS_TARGET}-ar"
export AS="${CROSS_TARGET}-as"
export LD="${CROSS_TARGET}-ld"
export RANLIB="${CROSS_TARGET}-ranlib"
export READELF="${CROSS_TARGET}-readelf"
export STRIP="${CROSS_TARGET}-strip"
